﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="SanPham.aspx.cs" Inherits="SanPham" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="boxLeftPart">
              		<div class="boxNewsHeadBox"><a href="#">SẢN PHẨM 
                          <%--<asp:Label ID="lbTenLoaiSP" runat="server" Text=""></asp:Label>--%></a></div>
                    <div id="boxProductsp">
                        <asp:DataList ID="dtlProduct" runat="server" RepeatColumns="4" 
                            RepeatDirection="Horizontal" Width="683px">
                            <FooterTemplate>
                                <asp:Label ID="lblEmpty" runat="server" Font-Bold="True" Font-Size="Medium" 
                                    ForeColor="Red" Text="Tin Tức đang cập nhật" 
                                    Visible="<%# bool.Parse((dtlProduct.Items.Count==0).ToString()) %>"></asp:Label>
                            </FooterTemplate>
                            <ItemTemplate>
                                <div class="boxProductDetail">
                                    <div class="productImg">
                                        <a href='<%# "ChiTietSanpham.aspx?idsp="+Eval("MaSP") %>'>
                                        <img alt="" width="100%" height="100%" src="images/Product/<%# Eval("HinhAnh") %>.jpg" style="border:0px none" />
                                        </a>
                                    </div>
                                    <div class="productName">
                                        <a href='<%# "ChiTietSanpham.aspx?idsp="+Eval("MaSP") %>'>
                                            <asp:Label ID="lbtensanpham" runat="server" Text='<%# Eval("TenSP") %>' 
                                            Font-Bold="True"></asp:Label></a>
                                    </div>
                                    <div class="productContentShort">
                                        <asp:Label ID="lbdacdiem" runat="server" Text='<%# Eval("GioiThieu")+"..." %>'></asp:Label>
                                        
                                    </div>
                                    <div class="productLinkDetails"><a  href='<%# "ChiTietSanpham.aspx?idsp="+Eval("MaSP") %>'>Chi tiết</a></div>
                                </div>
                            </ItemTemplate>
                        </asp:DataList>
                        
                    </div>
                    <!---Phan trang---->
                    <div style="width:200px;float:left">
                        <table width="200">
                        <tr align="center">
                        <td>
                                    <asp:Button ID="lbtnFirst" runat="server" CausesValidation="false" 
                                        Text="Trang Đầu" onclick="lbtnFirst_Click" />
                                    </td>
                        <td>
                                    <asp:DataList ID="dlPaging" runat="server" OnItemCommand="dlPaging_ItemCommand" 
                                        OnItemDataBound="dlPaging_ItemDataBound" RepeatDirection="Horizontal" 
                                        BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" 
                                        CellPadding="4" ForeColor="Black" GridLines="Vertical">
                                        <AlternatingItemStyle BackColor="White" />
                                        <FooterStyle BackColor="#CCCC99" />
                                        <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                                        <ItemStyle BackColor="#F7F7DE" />
                                        <ItemTemplate>
                                            <asp:LinkButton ID="lnkbtnPaging" runat="server" CommandName="Paging"
                                                CommandArgument='<%# Eval("PageIndex") %>' Text='<%# Eval("PageText") %>' 
                                                CausesValidation="False"></asp:LinkButton></ItemTemplate>
                                        <SelectedItemStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                                    </asp:DataList>
                                    </td>
                        <td>
                                    <asp:Button ID="lbtnLast" runat="server" CausesValidation="false" 
                                        Text="Trang Cuối" onclick="lbtnLast_Click" />
            
                            </td>
                        </tr>
                        </table>
                    </div>
              </div>
              <div style="width:100%;clear:both"></div>
</asp:Content>

